package org.or5e.oss.ws.datatypes;

import java.io.Serializable;

/**
 * A warning bean which is designed to hold any warning message to the client which is happened in any of the transaction processing or if there is any error in the request.
 * @author Ponraj Suthanthiramani
 */
public class Warning implements Serializable {
	public enum WarningType {INFO, ERROR};
	private static final long serialVersionUID = 1L;
	public Integer _warningLevel = null;
	public String _warningMessage = null;
	public WarningType _warningType = null;
	/**
	 * @return the _warningLevel
	 */
	public final Integer get_warningLevel() {
		return _warningLevel;
	}
	/**
	 * @param level the _warningLevel to set
	 */
	public final void set_warningLevel(Integer level) {
		_warningLevel = level;
	}
	/**
	 * @return the _warningMessage
	 */
	public final String get_warningMessage() {
		return _warningMessage;
	}
	/**
	 * @param message the _warningMessage to set
	 */
	public final void set_warningMessage(String message) {
		_warningMessage = message;
	}
	/**
	 * @return the _warningType
	 */
	public final WarningType get_warningType() {
		return _warningType;
	}
	/**
	 * @param type the _warningType to set
	 */
	public final void set_warningType(WarningType type) {
		_warningType = type;
	}
}
